﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class ThongtintuyensinhModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string ContentFull { get; set; }
        public string Images { get; set; }
        public Nullable<System.DateTime> Datecreate { get; set; }
        public Nullable<bool> Active { get; set; }
        public string MetaKeywords { get; set; }
        public string MetaDescription { get; set; }
        public string MetaTitle { get; set; }

        public static void MapFrom(ThongtintuyensinhModel Model, ref Thong_tin_tuyen_sinh entity)
        {
            entity.Id = Model.Id;
            entity.ContentFull = Model.ContentFull;
            entity.Title = Model.Title;
            entity.Description = Model.Description;
            entity.Datecreate = Model.Datecreate;
            entity.Active = Model.Active;
            entity.Images = Model.Images;
            entity.MetaDescription = Model.MetaDescription;
            entity.MetaKeywords = Model.MetaKeywords;
            entity.MetaTitle = Model.MetaTitle;
        }

        public static void MapFrom(Thong_tin_tuyen_sinh entity, ref ThongtintuyensinhModel Model)
        {
            Model.Id = entity.Id;
            Model.ContentFull = entity.ContentFull;
            Model.Title = entity.Title;
            Model.Description = entity.Description;
            Model.Datecreate = entity.Datecreate;
            Model.Active = entity.Active;
            Model.Images = entity.Images;
            Model.MetaDescription = entity.MetaDescription;
            Model.MetaKeywords = entity.MetaKeywords;
            Model.MetaTitle = entity.MetaTitle;
        }
    }
}